<!DOCTYPE html>
<html lang="en" xmlns:th = "http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a th:if="${flag == 'yes'}" th:href="@{http://ktjiao.com}">ktjiaoyu</a><br/>
<a th:unless="${flag == 'no'}" th:href="@{http://czkt.com}">czkt</a><br/>

<div th:switch="${flag}">
    <p th:case="'woman'">他是一个姑娘</p>
    <p th:case="'man'">他是一个爷们</p>
</div>
</body>
</html>